package defaultPackage;
import java.awt.*;
public class ConstructionMenu 
{
	boolean active;
	int textInterval = 16;
	MainClass main;
	public ConstructionMenu(MainClass main)
	{
		this.main = main;
	}
	
	public void draw(Graphics g)
	{
		if (active)
		{
			g.setColor(Color.darkGray);
			g.fillRect(MainClass.windowXSize - 195, MainClass.menuHeight, 190, 5*textInterval + 5);
		
		
			g.setColor(Color.cyan);
			if (main.cursor.getObjectType() == ObjectType.LifeSupport)
				g.setColor(Color.GREEN);
			g.drawString("L - Life Support", MainClass.windowXSize - 195 + 5, 1*textInterval+MainClass.menuHeight);
			g.setColor(Color.cyan);
			if (main.cursor.getObjectType() == ObjectType.ResourceGatherer)
				g.setColor(Color.GREEN);
			g.drawString("R - Resource Gatherer", MainClass.windowXSize - 195 + 5, 2*textInterval+MainClass.menuHeight);
			g.setColor(Color.cyan);
			if (main.cursor.getObjectType() == ObjectType.Airlock)
				g.setColor(Color.GREEN);
			g.drawString("A - Airlock", MainClass.windowXSize - 195 + 5, 3*textInterval+MainClass.menuHeight);
			g.setColor(Color.cyan);
			if (main.cursor.getObjectType() == ObjectType.Door)
				g.setColor(Color.GREEN);
			g.drawString("D - Door", MainClass.windowXSize - 195 + 5, 4*textInterval+MainClass.menuHeight);
			g.setColor(Color.cyan);
			if (main.cursor.getObjectType() == null)
				g.setColor(Color.GREEN);
			g.drawString("X - Delete Construction", MainClass.windowXSize - 195 + 5, 5*textInterval+MainClass.menuHeight);
			
			g.setColor(Color.RED);
			g.drawString("  500", MainClass.windowXSize - 40, 1*textInterval+MainClass.menuHeight);
			g.drawString("4000", MainClass.windowXSize - 40, 2*textInterval+MainClass.menuHeight);
			g.drawString("  250", MainClass.windowXSize - 40, 3*textInterval+MainClass.menuHeight);
			g.drawString("  150", MainClass.windowXSize - 40, 4*textInterval+MainClass.menuHeight);
		}
	}
	
	public void setActive(boolean active)
	{
		this.active = active;
	}
	
	public boolean isActive()
	{
		return active;
	}
}
